package model;

public class Exam {
    private String sno;
    private String sname;
    private String cname;
    private int ordScore;
    private int examScore;
    private int finalScore;

    public void setSno(String sno) {
        this.sno = sno;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public void setOrdScore(int ordScore) {
        this.ordScore = ordScore;
        finalScore = (int) Math.round(ordScore * 0.3 + examScore * 0.7);
    }

    public void setExamScore(int examScore) {
        this.examScore = examScore;
        finalScore = (int) Math.round(ordScore * 0.3 + examScore * 0.7);
    }

    public String getSno() {
        return sno;
    }

    public String getSname() {
        return sname;
    }

    public String getCname() {
        return cname;
    }

    public int getOrdScore() {
        return ordScore;
    }

    public int getExamScore() {
        return examScore;
    }

    public int getFinalScore() {
        return finalScore;
    }

}
